package com.ling.luo.util;

import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.generator.config.DataSourceConfig;

/**
 * trade 模块 代码生成工具
 *
 * @author zhanglinfeng
 */
public class TradeMysqlGenerator extends BaseMysqlGenerator {
	@Override
	protected DataSourceConfig getDataSourceConfig() {
		return new DataSourceConfig().setDbType(DbType.MYSQL).setDriverName("com.mysql.cj.jdbc.Driver").setUsername("root").setPassword("123456")
				.setUrl("jdbc:mysql://localhost:3306/base-project?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&serverTimezone=UTC");
	}

	@Override
	protected String getParent() {
		return "com.ling.luo";
	}

	@Override
	protected String getModel() {
		return "trade";
	}

	@Override
	protected String getPackageUrl() {
		return "/com/ling/luo/trade/";
	}


	/**
	 * 执行代码生成
	 *
	 * @param args
	 */
	public static void main(String[] args) {
		TradeMysqlGenerator generator = new TradeMysqlGenerator();
		generator.generator();
	}


}
